//
//  EnterpriseListView.h
//  WRY
//
//  Created by zhong sckj on 10-10-15.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "CommonView_iPad.h"
#import "EnterpriseListVC_iPad.h"
#import "RootVC_iPad.h"
@class EnterpriseListCell_iPad;
@interface EnterpriseListView : CommonView_iPad<UITableViewDelegate,UITableViewDataSource>
{
	RootVC_iPad *rootVc;
	UITableView *enterpriseListT;
	IBOutlet EnterpriseListCell_iPad *_cell;
	NSMutableArray *listData;
	
	NSInteger loadFromType;
	NSInteger wuyEnterType;
	NSString *methodName;
	NSString *enterpriseTypeCode;
	NSString *detailTypeCode;
	
	//分页部分
	NSInteger enlistTotalCount;//总条数
	//NSInteger pageCount;//总页数
	NSInteger pagecurrentCount;//当前页
	NSInteger pageSize;//每页显示大小
	UITableViewCell *pageCell;
	UIButton *pageButton;
	
	EnterpriseListVC_iPad *listVcController;
	
	//企业滚动
	//NSMutableDictionary *entersDir;
	//NSArray *enterdirKeys;
	
	NSTimer *mytimer;
}
@property(nonatomic,retain)RootVC_iPad *rootVc;
@property(nonatomic,retain)UITableView *enterpriseListT;
@property(nonatomic,retain)EnterpriseListCell_iPad *_cell;
@property(nonatomic,retain)NSMutableArray *listData;
@property(nonatomic,retain)NSString *methodName;
@property(nonatomic,retain)NSString *enterpriseTypeCode;
@property(nonatomic,retain)NSString *detailTypeCode;
//分页
@property(nonatomic,retain)IBOutlet UITableViewCell *pageCell;
@property(nonatomic,retain)IBOutlet UIButton *pageButton;
@property(nonatomic,retain)EnterpriseListVC_iPad *listVcController;


//@property(nonatomic,retain)NSMutableDictionary *entersDir;
//@property(nonatomic,retain)NSArray *enterdirKeys;
@property(nonatomic,retain)NSTimer *mytimer;


- (id)initWithFrame:(CGRect)frame loadFromType:(NSInteger)fromtype entertype:(NSInteger)entertype;
-(void)fillData:(NSString *)methodNameStr
 selectNameCode:(NSString *)nameCodeStr 
enterpriseTypeCode:(NSString *)enterprisetypeCodeStr
 DetailTypeCode:(NSString *)detailTypeCodeStr;

-(void)initRightView;
-(void)createTableView;
-(void)reloadTableView;
-(void)reflurbish:(NSInteger)fromtype enterType:(NSString *)enterpriseType;
//显示更多
//-(IBAction)prePageAction;
//-(IBAction)nextPageAction;
-(IBAction)morePageCount;
//-(void)manageData;
@end
